<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>期货学院-投教公开课</title>
    <link rel="stylesheet" href="{{$static_path}}/static/common/css/reset.css">
    <link rel="stylesheet" href="{{$static_path}}/static/common/css/swiper_2.7.css">
    <link rel="stylesheet" href="{{$static_path}}/static/common/css/header.css">
    <link rel="stylesheet" href="{{$static_path}}/static/common/css/footer.css">
    <link rel="stylesheet" href="{{$static_path}}/static/css/college/college-openclass.css">
    <link rel="stylesheet" href="{{$static_path}}/static/common/css/common.css">
    <script src="{{$static_path}}/static/common/js/jquery-1.11.3.js"></script>
    <script src="{{$static_path}}/static/common/js/swiper_2.7.js"></script>
</head>

<body>
    <!-- 头部部分 -->
    {{include file="header.tpl"}}
    <!-- 内容区域 -->
    <div class="dh-main">
        <div class="college-banner"></div>
        <div class="main-content">
            <div class="main-left">
                <div class="dh-top1">
                    <p class="h-top">期货学院</p>
                </div>
                <ul class="dh-list">
                    {{navigation parentid="8"}}
                        {{foreach $list as $k => $v}}
                            <li> <a href="{{$v['url']}}" {{if $get.category|in_array:$v['allchildurl']}}class="dh-acitve"{{/if}}>{{$v['name']}}</a></li>
                        {{/foreach}}
                    {{/navigation}}
                </ul>
            </div>
            <div class="main-right">
                {{crumbs url=$smarty.get.category}}
                <div class="right-txt-box">
                    <h1>{{$title}}</h1>
                     <!-- 日历的开始部分 -->
                     <div class="rli_name">
                        <div class="hover_imgs"></div>
                        <div>
                            <h3 id='h3Ele'></h3>
                        </div>
                    </div>
                    <!-- 日历的显示 -->
                    <div id='schedule-box' class="boxshaw"></div>
                    <!-- 日历的显示 -->
                    <div class="wz">
                        <span class="wz-span">您的位置：<a href="/">首页</a> > {{$crumbs}} </span>
                    </div>
                </div>
                {{/crumbs}}
                <!-- 右侧的内容 -->
                <div class="box-txt">
                    <div class="zs-tabs">
                        {{navigation parentid="23"}}
                            {{foreach $list as $k => $v}}
                            <p>
                                <a href="{{$v['url']}}">{{$v['name']}}</a>
                            </p>
                            {{/foreach}}
                        {{/navigation}}
                    </div>
                    {{content category=$smarty.get.category pageSize=9 pageArgs=[3,4,5,6,7]}}
                    <div class="list-tabs">
                        <ul class="box-zs">
                            {{foreach $list as $k => $v}}
                            <li>
                                <a href="{{$v['url']}}" target="{{$v['target']}}">
                                    <div class="div-content">
                                        <img src="{{$v['preview'][0]}}" alt="" style="max-width: 215px">
                                        <div class="txt-right-tj">
                                            <p class="span-left">{{$v['title']}}</p>
                                            <span>{{$v['add_time']}}</span>
                                        </div>
                                        <div class="ck"> 查看详情 <img src="{{$static_path}}/static/images/college-openclass/detail_right.png" alt=""></div>
                                    </div>
                                </a>
                            </li>
                            {{/foreach}}
                        </ul>

                        <!-- 分页 -->
                        <div class="dywPages">
                        {{$pageInfo['html']}}   
                        </div>
                    </div>
                    {{/content}}
                    </div>

                </div>


            </div>

        </div>


    </div>

    <!--放一个id为footer的div,把footer.html加载到这块-->
    {{include file="footer2.tpl"}}
    <!-- 底部部分 -->
</body>

<!-- 加载头尾 -->

<script src="{{$static_path}}/static/common/js/load.js"></script>

<script src="{{$static_path}}/static/js/schedule.js"></script>
<script>
    // tab切换样式
    $('.zs-tabs>p').click(function () {
        $(this).addClass('zs-acitve').siblings().removeClass('zs-acitve')
        $('.tabs1-active').eq($(this).index()).show().siblings().hide()
    })

// 日历的回调
    var mySchedule = new Schedule({
        el: '#schedule-box',
        //date: '2018-9-20',
        clickCb: function (y, m, d) {
            //点击日期回调（可选）
            document.querySelector('#h3Ele').innerHTML =  y + '-' + m + '-' + d
            $('.boxshaw').hide(100)
            $('.hover_imgs').removeClass('active_img')
            
        },
        nextMonthCb: function (y, m, d) {
            //点击下个月回调（可选）
            document.querySelector('#h3Ele').innerHTML =  y + '-' + m + '-' + d
        },
        nextYeayCb: function (y, m, d) {
            //点击下个月回调（可选）
            document.querySelector('#h3Ele').innerHTML =  y + '-' + m + '-' + d
        },
        prevMonthCb: function (y, m, d) {
            //点击上个月回调（可选）
            document.querySelector('#h3Ele').innerHTML =  y + '-' + m + '-' + d
        },
        prevYearCb: function (y, m, d) {
            //点击上一年月回调（可选）
            document.querySelector('#h3Ele').innerHTML =  y + '-' + m + '-' + d
        }
    });
</script>

</html>